home *** CD-ROM | disk | FTP | other *** search
Text File | 2000-01-31 | 670 b | 23 lines | [TEXT/ToyS] |
- tell application "iView Multimedia"
- tell window 1
- copy (the path of the first object whose mark id is not 0) to mymarked
- end tell
-
- end tell
-
- on set_desktop_pic(file_path)
- tell application "Appearance"
- launch
- if file_path is "no picture" then
- set picture file of monitor 1 to no picture
- else
- display dialog "choose the monitor to place the picture on" buttons {"1", "2"} default button 1
- set theButton to (button returned of the result)
- set picture file of monitor (theButton as number) to file file_path
- set picture positioning of monitor (theButton as number) to scaled
- end if
- quit
- end tell
- end set_desktop_pic
-
- set_desktop_pic(mymarked)